import { configureStore } from "@reduxjs/toolkit";
// ...
import listSlice from './list/index'
import themeSlice from './color/them'
const store = configureStore({
  reducer: {
   list:listSlice,
   themeSlice:themeSlice
  },
});

// highlight-start
// 从 store 本身推断出 `RootState` 和 `AppDispatch` 类型
export type RootState = ReturnType<typeof store.getState>;
// 推断出类型: {posts: PostsState, comments: CommentsState, users: UsersState}
export type AppDispatch = typeof store.dispatch;
// highlight-end
export default store